﻿using System.Collections.Generic;
using System.IO;
using System.Net.Mail;

namespace NP.BPMReportPlatform.RecurringJobs.Dto
{

    /// <summary>
    /// 发生邮件入参DTO（简洁版）
    /// </summary>
    public class SendEmailSimpleDto
    {
        /// <summary>
        /// 构造函数
        /// </summary>
        public SendEmailSimpleDto()
        {
            IsHtml = true;
        }

        /// <summary>
        /// 收件人邮箱
        /// </summary>
        public string To { get; set; }

        /// <summary>
        /// 抄送人邮箱
        /// </summary>
        public string CC { get; set; }

        /// <summary>
        /// 秘抄人邮箱
        /// </summary>
        public string BCC { get; set; }

        /// <summary>
        /// 邮件主题
        /// </summary>
        public string Subject { get; set; }

        /// <summary>
        /// 邮件正文
        /// </summary>
        public string Body { get; set; }

        /// <summary>
        /// 是否HTML
        /// </summary>
        public bool IsHtml { get; set; }

        /// <summary>
        /// 流程实例号（方便查找发送记录）
        /// </summary>
        public string InstanceNumber { get; set; }

        /// <summary>
        /// 邮件附件
        /// </summary>
        public List<Attachment> attachments = new List<Attachment>();
    }
}